<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>Test for Table Parser</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" >
    <script src="js/jquery-1.11.0.min.js"></script>
    <script src="js/bootstrap.min.js" ></script>
    <script src="js/tableParser.js"></script>
</head>
<body class="row">
    <div class="col-md-6">
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/table1', 'COL')">列表</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/table2', 'ROW')">行表</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/table3', 'MIX')">交叉表</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/train_stopped.html', 'MIX')">列车停运</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/shuqingxinxi.html', 'ROW')">长江水情</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/dizhenwang.html', 'ROW')">地震</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/nanjingtianqi.html', 'MIX')">南京天气</button>
        <button class="btn btn-default" onclick="loadTable('http://172.21.213.224:8071/kongqizhiliang.html', 'ROW')">空气质量</button>
    </div>
    <br />
    <br />
    <br />
	<div id="tbParser" class="col-md-12"></div>
</body>
<script>
    
    var tParser = new TableParser()

    function loadTable(url, type){
        tParser.init(url, $('#tbParser'), type);
    }

</script>
</html>